package work.cqhx.springapi.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import work.cqhx.springapi.mapper.TeacherMapper;
import work.cqhx.springapi.pojo.Teacher;

@Service
public class TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    public Boolean queryTeacher(String name, String password){
        if(teacherMapper.queryTeacher(name,password) != null){
            return true;
        }
        return false;
    }


}
